communication/socket

create raw socket

# generated using capa explorer for IDA Pro
rule:
  meta:
    name: create raw socket
    namespace: communication/socket
    authors:
      - blas.kojusner@mandiant.com
    scopes:
      static: basic block
      dynamic: call
    mbc:
      - Communication::Socket Communication::Create Socket [C0001.003]
    references:
      - https://learn.microsoft.com/en-us/windows/win32/winsock/tcp-ip-raw-sockets-2
      - https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket
      - https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketa
    examples:
      - 10EBCF8C20403457A08762200015B151:0x140001000
  features:
    - and:
      - or:
        - api: socket
        - api: ws2_32.#23 = socket
        - api: ws2_32.WSASocket
        - api: ws2_32.#82 = WSASocketA
        - api: ws2_32.#83 = WSASocketW
      - or:
        - number: 2 = AF_INET
        - number: 23 = AF_INET6
      - number: 3 = SOCK_RAW

last edited: 2024-04-23 12:20:28